import demo1.Animal;
import demo1.Dog;

public class Test {
    public static void main(String[] args) {
        Animal animal=new Dog("旺财",3);
        Dog dog=(Dog)animal;
        dog.bark();
    }
}
